package com.markbuikema.juliana32.model.nieuws;

import java.util.GregorianCalendar;

public class WebsiteNieuwsItem extends NieuwsItem {

	private String detailUrl;
	private String id;

	public WebsiteNieuwsItem(String id, String title, String subTitle, String content, GregorianCalendar createdAt, String detailUrl) {

		super(title, subTitle, null, createdAt);
		this.detailUrl = detailUrl;
		this.id = id;
		this.content = content;
	}

	// public WebsiteNieuwsItem() {
	// super(null, null, null, null);
	// }

	public String getDetailUrl() {
		return detailUrl;
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public boolean isContentLoaded() {
		return content != null;
	}

	@Override
	public void startLoading(OnContentLoadedListener callback) {
		callback.onContentLoaded(content, null);
	}
}
